package com.fmdj.odr.service;

import com.fmdj.common.util.PageUtils;
import com.fmdj.odr.db.pojo.OrderBillEntity;
import com.fmdj.odr.db.pojo.OrderEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface OrderService {
    HashMap selectDriverTodayBusinessData(Long driverId);

    String insertOrder(OrderEntity entity,OrderBillEntity billEntity);

    String acceptOrder(Long orderId, Long driverId);

    HashMap searchDriverExecuteOrder(Map map);

    Integer searchOrderStatus(Map map);

    String deleteUnAcceptOrder(Map map);

    HashMap searchDriverCurrentOrder(long driverId);

    HashMap hasCustomerCurrentOrder(long customerId);

    HashMap searchOrderForMoveById(Map map);

    int arriveStartPlace(Map map);

    Boolean confirmArriveStartPlace(long orderId);

    int startDriving(Map map);

    int updateOrderStatus(Map map);

    PageUtils searchOrderByPage(Map map);

    HashMap searchOrderContent(long orderId);

    ArrayList<HashMap> searchOrderStartLocationIn30Days();

    Boolean validDriverOwnOrder(Map map);

    HashMap searchSettlementNeedData(long orderId);

    HashMap searchOrderById(Map map);


    HashMap validCanPayOrder(Map map);

    int updateOrderPrepayId(Map map);

    void handlePayment(String uuid, String driverOpenId, String payId, String payTime);

    String updateOrderAboutPayment(Map map);

    PageUtils searchDriverOrderByPage(Map map);

    PageUtils searchCustomerOrderByPage(Map map);
}
